package com.mydesignpattern.beijing.singleton;

/**
 * 单例  饿汉模式
 * 一开始就创建一个，貌似很饥饿的样子，
 * 因此叫饿汉模式
 * Created by nevermore on 17/4/12.
 */
public class SingletonHungry {

    private static SingletonHungry singletonHungry = new SingletonHungry();

    private SingletonHungry(){}

    public static SingletonHungry getInstance(){
        return singletonHungry;
    }


}
